import { $http } from './index';

export function addReport(data = {}) {
    return $http.post('/saas/publishing-report/addReport', data);
}
export function screenshot(data = {}) {
    return $http.post('/saas/publishing-report/material/screenshot', data);
}
export function photostat(data = {}) {
    return $http.post('/saas/publishing-report/photo/statistic', data);
}
export function invalidatePhoto(data = {}) {
    return $http.post('/saas/publishing-report/photo/invalidate', data);
}
export function cancelReason(data = {}) {
    return $http.post('/saas/publishing-report/photo/cancelReason', data);
}
export function validatePhoto(data = {}) {
    return $http.post('/saas/publishing-report/photo/validate', data);
}
export function planReportList(data = {}) {
    return $http.post('/saas/publishing-report/list', data);
}
export function cancelReport(data = {}) {
    return $http.delete(`/saas/publishing-report/${data.reportId}`);
}
export function getReport(data = {}) {
    return $http.get(`/saas/publishing-report/${data.reportId}`);
}
export function remakeReport(data = {}) {
    return $http.put(`/saas/publishing-report/${data.reportId}/remake`);
}
export function photoList(data = {}) {
    return $http.post('/saas/publishing-report/photo/list', data);
}
export function invalidPhotoList(data = {}) {
    return $http.post('/saas/publishing-report/photo/invalidList', data);
}
export function downloadReport(params = {}) {
    return $http.get('/saas/publishing-report/download', { params });
}
